<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//登陆
$this->group(['domain' => env('DOMAIN_ADMIN')], function() {
    $this->get('/login', 'LoginController@showLoginForm');
    $this->post('/login', 'LoginController@login')->middleware(['throttle:10,1']);
    $this->post('/logout', 'LoginController@logout');
    //密码重置
    $this->post('/password', 'ResetPasswordController@reset');    
});